docs: Add tutorial export_yolo_with_images.py #362
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a Python script that exports labeled data from a Label Studio project
and converts it into the YOLO format, including downloading associated images.
1. What It Does and How
The script performs the following steps:
to a Label Studio instance using the provided URL and API key.
to transform the annotations into the YOLO format suitable for object detection tasks.
implementing retry logic with exponential backoff to handle rate limits or transient network issues.
2. How to Use It
by modifying the script variables or via command-line arguments.
'your-api-key'
and12345
with your actual API key and project ID.output_yolo
directory containing:images
subdirectory with all the downloaded images.3. When to Use It
Use this script when you need to prepare labeled datasets from Label Studio for training YOLO object detection models.
It's particularly useful for converting annotations into the required YOLO format and ensuring all associated images
are downloaded and organized locally for your machine learning pipeline.